import App from './App'
import pinia from './store'

// 引入uView UI
import uView from 'uview-ui'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

// 使用uView UI
Vue.use(uView)

// 挂载Pinia
Vue.prototype.$pinia = pinia

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
  pinia
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(pinia)
  return {
    app,
    pinia
  }
}
// #endif